<?php

namespace app\index\controller;

use app\common\YujisoController;
use app\index\service\ExchangeService;

class Exchange extends YujisoController
{
    public function __construct()
    {
        parent::__construct();
    }

    //列表
    public function getList()
    {
        exitJson(ExchangeService::getList($this->param));
    }

    //通过接口获取汇率
    public function getExchangeByApi()
    {
        ExchangeService::getExchangeByApi();
        returnJson();
    }
}
